package com.yc.weixin.entity;

import java.io.Serializable;

import org.springframework.web.multipart.MultipartFile;

public class Dede_weixin_article implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6891355110103928346L;
	
	private MultipartFile imageFile;  //用于存放图片，springmvc框架中有
	
	private int aid;

    private int typeid;//类型id
    
    private String tname;//类型名
    
    private String title;//标题
    
    private String body;//格式文本

    private String text;//纯文本

    private Integer weight;//权重

    private String author;//作者

    private int uid;//审核者id
    
    private String uname;//审核者姓名

    private String addtime;//添加时间

    private String picurl;//图片地址

    private String status;//状态(1可用0不可用)
    

	public MultipartFile getImageFile() {
		return imageFile;
	}

	public void setImageFile(MultipartFile imageFile) {
		this.imageFile = imageFile;
	}

	public int getAid() {
		return aid;
	}
	

	public void setAid(int aid) {
		this.aid = aid;
	}

	public int getTypeid() {
		return typeid;
	}

	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getUname() {
		if(uname==null){
			return "未审核";
		}
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getAddtime() {
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public String getPicurl() {
		return picurl;
	}

	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Dede_weixin_article(int aid, int typeid, String tname, String title,
			String body, String text, Integer weight, String author, int uid,
			String uname, String addtime, String picurl, String status) {
		super();
		this.aid = aid;
		this.typeid = typeid;
		this.tname = tname;
		this.title = title;
		this.body = body;
		this.text = text;
		this.weight = weight;
		this.author = author;
		this.uid = uid;
		this.uname = uname;
		this.addtime = addtime;
		this.picurl = picurl;
		this.status = status;
	}

	public Dede_weixin_article() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public String toString() {
		return "\nDede_weixin_article [aid=" + aid + ", typeid=" + typeid
				+ ", tname=" + tname + ", title=" + title + ", body=" + body
				+ ", text=" + text + ", weight=" + weight + ", author="
				+ author + ", uid=" + uid + ", uname=" + uname + ", addtime="
				+ addtime + ", picurl=" + picurl + ", status=" + status + "]";
	}

}